<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1 {
            float: left;
            width: 200px;
            height: 200px;
            background-color: pink;
        }
        .box2 {
            float: right;
            width: 400px;
            height: 200px;
            background-color: blue;
        }
        .box2-1 {
            float: right;
            width: 200px;
            height: 50px;
            background-color: red;
        }
        .box2-2 {
            float: right;
            margin-top: 10px;
            width: 300px;
            height: 100px;
            background-color: chartreuse;
        }
    </style>
</head>
<body>
    <div class="box1">1</div>
    <div class="box2">
        <div class="box2-1"></div>
        <div class="box2-2"></div>
    </div>
</body>
</html>